<!-- table列表数据显示  -->
@forelse  ($list as $k=>$v)
    @inject('CommonPresenter','App\Presenters\CommonPresenter');
    <tr data-pid="{{$v['rule_pid']}}" class="tr-pid-{{$v['rule_pid']}}">
		<td style="text-align: left;padding-left:50px">
            @for($i =1; $i<$v['level'];$i++ )
                &nbsp;&nbsp;&nbsp;&nbsp;
            @endfor
            <i style="font-size: 14px;cursor:pointer" class="iconfont icon-down8 expand-icon" data-id="{{$v['id']}}"></i>&nbsp;
            <i style="font-size: 14px" class="{!! $v['rule_icon'] !!}"></i>&nbsp;&nbsp;{!! $v['rule_name'] !!}
        </td>
		<td>{{$v['rule_route']}}</td>
		<td>{{$v['sort']}}</td>

		<td>
            <span>
               @component('component/switch',['field'=>'status','value' => $v['status'],'data_id' => $v['id'],'data_url'=>URL::asset('/auth/group/update')])
                @endcomponent
            </span>
        </td>
		<td>
		<p >
            <span class="oa_operate op_tbl btn-dialog" data-area="['65%', '70%']" data-url="{{URL::asset('/auth/rule/form')}}?id={{$v['id']}}" data-title = "编辑">编辑</span>
            <span class="btn-del oa_operate op_tbl" data-url="{{URL::asset('/auth/rule/del/'.$v['id'])}}" data-title="删除记录" data-text="您确认要删除此记录吗?" style="color:red !important;">删除</span>
        </p>
		</td>
    </tr>
    @empty
    <tr>
        <td colspan=11>暂无记录</td>
    </tr>
@endforelse

